package com.zhwl.manage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhwl.common.annotation.Excel;
import com.zhwl.common.core.domain.BaseEntity;

/**
 * 变量管理对象 variables
 *
 * @author mobin
 * @date 2025-07-22
 */

@TableName(resultMap = "com.zhwl.manage.mapper.VariablesMapper.VariablesResult")
public class Variables extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Excel(name = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 变量名称
     */
    @Excel(name = "变量名称")
    private String variable;


    /**
     * 变量描述
     */
    @Excel(name = "变量描述")
    private String description;

    @Excel(name = "单位")
    private String unit;

    @Excel(name = "是否可以新增输入框")
    private Long needAdd;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getVariable() {
        return variable;
    }

    public void setVariable(String variable) {
        this.variable = variable;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Long getNeedAdd() {
        return needAdd;
    }

    public void setNeedAdd(Long needAdd) {
        this.needAdd = needAdd;
    }

    @Override
    public String toString() {
        return "Variables{" +
                "id=" + id +
                ", variable='" + variable + '\'' +
                ", description='" + description + '\'' +
                ", unit='" + unit + '\'' +
                ", needAdd=" + needAdd +
                '}';
    }
}
